﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PresentationWpf.DB
{
   public sealed class EntityConnectionManager
    {
        static EntityConnectionManager instance = null;
        static readonly object padlock = new object();

        EntityConnectionManager()
        {
        }

        public static EntityConnectionManager Instance
        {
            get
            {
                lock (padlock)
                {
                    if (instance == null)
                    {
                        instance = new EntityConnectionManager();
                    }
                    return instance;
                }
            }
        }
        public Database1Entities GetNewEntityConnection
        {
            get
            {
                return new Database1Entities();
            }
        }
    }
}
